﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Unit2Session4.aspx.vb" Inherits="gdrwebapp1.Unit2Session4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    Hotel Detail
    <br />
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="Hotel_Name" HeaderText="Hotel_Name" SortExpression="Hotel_Name" />
            <asp:BoundField DataField="Hotel_Description" HeaderText="Hotel_Description" SortExpression="Hotel_Description" />
            <asp:ImageField DataImageUrlField="Hotel_Image" HeaderText="Picture">
            </asp:ImageField>
            <asp:HyperLinkField DataNavigateUrlFields="ID" HeaderText="More Detail" Text="Detail" DataNavigateUrlFormatString="{0}" DataTextField="Hotel_Image" />
            <asp:BoundField DataField="Hotel_Image" HeaderText="Detail" SortExpression="Hotel_Image" />
            <asp:BoundField DataField="Hotel_Name" HeaderText="Hotel_Name" SortExpression="Hotel_Name" />
            <asp:BoundField DataField="Hotel_Description" HeaderText="Hotel_Description" SortExpression="Hotel_Description" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="SELECT [Hotel Name] AS Hotel_Name, [Hotel Description] AS Hotel_Description, [Hotel Image] AS Hotel_Image FROM [tbl1] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
</asp:Content>
